<?php
function step1()
{ 
 if($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['agree']))
{
	header('Location: index.php?step=2');
	exit;
 }
 if($_SERVER['REQUEST_METHOD'] == 'POST' && !isset($_POST['agree']))
{
	echo '<script type="text/javascript">';
	echo 'alert("You must agree to the information on this page before continuing.")';
	echo '</script>'; 
}
require("step1.tpl");
}
?>

